home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / PowerMacOberon feb96 / Text / Folds.Tool (.txt) < prev    next >
Encoding:
Oberon Text  |  1995-05-08  |  1.8 KB  |  36 lines  |  [TEXT/.Ob4]

  1. Syntax10.Scn.Fnt
  2. Folds.Compile  ~
  3. Folds.Compile *
  4. Folds.Compile ^ 
  5. Folds.ShowError
  6. Folds.Restore *
  7. Folds.SetProfile
  8. -----------------------------------
  9. Folds allows the compilation of folded texts automatically inserting error elements at the
  10. error positions.
  11. Folds.Compile  (^ | * | {filename} ~)
  12.     compiles the specified text(s). If the text contains folds, they are silently unfolded
  13.     before the compilation. Error elements are inserted at the error positions. They can
  14.     be searched for with Folds.ShowError. Old error elements are removed before every
  15.     new compilation and are not stored with Edit.Store. When called from the menu bar,
  16.     Folds.Compile compiles the text in the viewer to which the menu belongs.
  17. Folds.ShowError
  18.     Sets the caret to the next error element after the previous caret position and displays
  19.     an error message in the Log Viewer. If there is no caret set, ShowError shows the
  20.     first error in the text. If an error element is contained in a folded text part, the fold
  21.     is automatically expanded. ShowError expects a table of error numbers and error
  22.     messages in a specific file (OberonErrors.Text for default).
  23. Folds.Restore *
  24.     Collapses all folds that were unfolded during Folds.ShowErrors in the marked viewer.
  25. Folds.SetProfile
  26.     A couple of settings are stored in the file Folds.Profile which is read when module Folds
  27.     is loaded. When these settings are changed in Folds.Profile they can be reloaded with
  28.     the command Folds.SetProfile. The default contents of Folds.Profile (which are also the
  29.     default settings when Folds.Profile is missing) are as follows:
  30.         compiler = Compiler.Compile /s
  31.         errorFile = OberonErrors.Text
  32.         showWarnings = yes
  33.     The settings allow to select a different compiler, different default compilation options,
  34.     and a different error message file. They also specify if error elements should be inserted for
  35.     warnings.
  36.